home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Support Library
/
RoseWare - Network Support Library.iso
/
apidev
/
netdmo.exe
/
SETMODE.FRM
< prev
next >
Wrap
Text File
|
1993-12-10
|
6KB
|
223 lines
Version 1.00
BEGIN Form Setmode
AutoRedraw = 0
BackColor = QBColor(1)
BorderStyle = 1
Caption = "Set Message Mode"
ControlBox = -1
Enabled = -1
ForeColor = QBColor(0)
Height = Char(22)
Left = Char(3)
MaxButton = -1
MinButton = -1
MousePointer = 0
Tag = ""
Top = Char(1)
Visible = -1
Width = Char(74)
WindowState = 0
BEGIN Frame Frame1
BackColor = QBColor(1)
Caption = ""
DragMode = 0
Enabled = -1
ForeColor = QBColor(0)
Height = Char(9)
Left = Char(2)
MousePointer = 0
TabIndex = 5
Tag = ""
Top = Char(2)
Visible = -1
Width = Char(14)
BEGIN OptionButton mode1
BackColor = QBColor(1)
Caption = "Mode 1"
DragMode = 0
Enabled = -1
ForeColor = QBColor(15)
Height = Char(1)
Left = Char(0)
MousePointer = 0
TabIndex = 1
TabStop = 0
Tag = ""
Top = Char(2)
Value = 0
Visible = -1
Width = Char(11)
END
BEGIN OptionButton mode2
BackColor = QBColor(1)
Caption = "Mode 2"
DragMode = 0
Enabled = -1
ForeColor = QBColor(15)
Height = Char(1)
Left = Char(0)
MousePointer = 0
TabIndex = 2
TabStop = 0
Tag = ""
Top = Char(4)
Value = 0
Visible = -1
Width = Char(11)
END
BEGIN OptionButton mode3
BackColor = QBColor(1)
Caption = "Mode 3"
DragMode = 0
Enabled = -1
ForeColor = QBColor(15)
Height = Char(1)
Left = Char(0)
MousePointer = 0
TabIndex = 3
TabStop = 0
Tag = ""
Top = Char(6)
Value = 0
Visible = -1
Width = Char(11)
END
BEGIN OptionButton Mode0
BackColor = QBColor(1)
Caption = "Mode 0"
DragMode = 0
Enabled = -1
ForeColor = QBColor(15)
Height = Char(1)
Left = Char(0)
MousePointer = 0
TabIndex = 0
TabStop = -1
Tag = ""
Top = Char(0)
Value = -1
Visible = -1
Width = Char(11)
END
END
BEGIN CommandButton okbuton
BackColor = QBColor(7)
Cancel = 0
Caption = "OK"
Default = 0
DragMode = 0
Enabled = -1
Height = Char(3)
Left = Char(2)
MousePointer = 0
TabIndex = 4
TabStop = -1
Tag = ""
Top = Char(12)
Visible = -1
Width = Char(14)
END
BEGIN TextBox Text1
BackColor = QBColor(1)
BorderStyle = 1
DragMode = 0
Enabled = -1
ForeColor = QBColor(15)
Height = Char(18)
Left = Char(19)
MousePointer = 0
MultiLine = -1
ScrollBars = 0
TabIndex = 6
TabStop = -1
Tag = ""
Text = "Text1"
Top = Char(2)
Visible = -1
Width = Char(52)
END
BEGIN Label Label1
Alignment = 0
AutoSize = 0
BackColor = QBColor(1)
BorderStyle = 0
Caption = "Select Mode"
DragMode = 0
Enabled = -1
ForeColor = QBColor(15)
Height = Char(1)
Left = Char(3)
MousePointer = 0
TabIndex = 7
Tag = ""
Top = Char(1)
Visible = -1
Width = Char(12)
END
BEGIN Label Label2
Alignment = 0
AutoSize = 0
BackColor = QBColor(1)
BorderStyle = 0
Caption = "Mode Description"
DragMode = 0
Enabled = -1
ForeColor = QBColor(15)
Height = Char(1)
Left = Char(20)
MousePointer = 0
TabIndex = 8
Tag = ""
Top = Char(1)
Visible = -1
Width = Char(16)
END
END
'$FORM Netdemo
TYPE SBMode
Mode AS INTEGER
END TYPE
DECLARE SUB SetBroadcastMode (SetMode1 AS SBMode)
SUB Form_Load ()
CRLF$ = CHR$(13) + CHR$(10)
text1.text = "Mode 0:" + CRLF$
text1.text = text1.text + " The server stores messages from users and the" + CRLF$
text1.text = text1.text + " server.The shell automaticaly gets the message" + CRLF$
text1.text = text1.text + " and displays it on the workstation." + CRLF$
text1.text = text1.text + "Mode 1:" + CRLF$
text1.text = text1.text + " The server rejects messages from the users and" + CRLF$
text1.text = text1.text + " accepts server messages. The shell automaticaly" + CRLF$
text1.text = text1.text + " displays the message on the workstation." + CRLF$
text1.text = text1.text + "Mode 2:" + CRLF$
text1.text = text1.text + " The server rejects messages from the users and" + CRLF$
text1.text = text1.text + " accepts server messages. In this mode the shell" + CRLF$
text1.text = text1.text + " does not display the message. An application " + CRLF$
text1.text = text1.text + " can call GetBroadcastMsg to retreive the most " + CRLF$
text1.text = text1.text + " recent message." + CRLF$
text1.text = text1.text + "Mode 3:" + CRLF$
text1.text = text1.text + " The server rejects messages from the users and" + CRLF$
text1.text = text1.text + " server. The shell does not display the the" + CRLF$
text1.text = text1.text + " message. An application can call " + CRLF$
text1.text = text1.text + " GetBroadcastMSG to retreive the most recent" + CRLF$
text1.text = text1.text + " message."
END SUB
SUB OKButon_Click ()
DIM SetMode1 AS SBMode
IF mode0.Value = -1 THEN SetMode1.Mode = 0
IF mode1.Value = -1 THEN SetMode1.Mode = 1
IF mode2.Value = -1 THEN SetMode1.Mode = 2
IF mode3.Value = -1 THEN SetMode1.Mode = 3
CALL SetBroadcastMode(SetMode1) 'Call the Procedure
msg$ = "Mode has been set to " + STR$(SetMode1.Mode)
MSGBOX msg$, 0, "Selected Mode"
UNLOAD SetMode
Netdemo.SHOW
END SUB